package pack0827;

import java.util.ArrayList;
import java.util.List;

public class Work {
    public static void a(){
        List<Users> list = new ArrayList<>();
        Users u1 = new Users(7839,"KING","PRESIDENT",null,"1981-11-17",5000,null,10);
        Users u2 = new Users(7698,"BLAKE","MANAGER",7839,"1981-05-01",2850,null,30);
        Users u3 = new Users(7782,"CLARK","MANAGER",7839,"1981-06-09",2450,null,10);
        Users u4 = new Users(7566,"JONES","MANAGER",7839,"1981-04-02",2975,null,20);
        Users u5 = new Users(7788,"SCOTT","ANALYST",7566,"1982-12-09",3000,null,20);
        Users u6 = new Users(7902,"FORD","ANALYST",7566,"1981-12-03",3000,null,20);
        Users u7 = new Users(7369,"SMITH","CLERK",7902,"1980-12-17",800,null,20);
        Users u8 = new Users(7499,"ALLEN","SALESMAN",7698,"1981-02-20",1600,300,30);
        Users u9 = new Users(7521,"WARD","SALESMAN",7698,"1981-02-22",1250,500,30);
        Users u10 = new Users(7654,"MARTIN","SALESMAN",7698,"1981-09-28",1250,1400,30);
        Users u11 = new Users(7844,"TURNER","SALESMAN",7698,"1981-09-08",1500,0,30);
        Users u12 = new Users(7876,"ADAMS","CLERK",7788,"1983-01-12",1100,null,20);
        Users u13 = new Users(7900,"JAMES","CLERK",7698,"1981-12-03",950,null,30);
        Users u14 = new Users(7734,"MILLER","CLERK",7782,"1982-01-23",1300,null,10);

        list.add(u1);list.add(u2);list.add(u3);list.add(u4);list.add(u5);list.add(u6);list.add(u7);
        list.add(u8);list.add(u9);list.add(u10);list.add(u11);list.add(u12);list.add(u13);list.add(u14);

        System.out.println("EMPNO\tENAME\tJOB\t\t\tMGR\t\tHIREDATE\tSAL\t\tCOMM\tDEPYINO");
        for (Users s: list){
            System.out.println(s);
        }
    }

    public static void main(String[] args) {
        a();
    }
}
